<!DOCTYPE html>
<html lang="zh">
    <head>
        <meta charset="UTF-8"/>
        <link rel="icon" type="image/svg+xml" href="/vite.svg"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <title>Vite App</title>
        <script src="https://cdn.bootcdn.net/ajax/libs/blueimp-md5/2.19.0/js/md5.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/axios/1.0.0-alpha.1/axios.min.js"></script>
        <style>
            * {
                margin: 0;
                padding: 0;
            }

            #app {
                width: 500px;
                margin: 200px auto;
                padding: 20px;
                border: 1px solid #ccc;
                border-radius: 5px;
            }

            .title {
                font-size: 22px;
                text-align: center;
                padding: 10px 0 20px 0;
            }

            #app #upload-btn {
                display: block;
                width: 100%;
                height: 50px;
                line-height: 50px;
                border: none;
                border-radius: 4px;
                background: #0099ff;
                color: #fff;
                outline: none;
            }

            #upload-progress {
                display: block;
                margin: 10px 0;
            }

            .upload-message {
                margin-bottom: 20px;
                font-size: 14px;
            }
        </style>
    </head>
    <body>
        <div id="app">
            <h1 class="title">文件切片上传</h1>
            <input type="file" id="file"/>
            <progress id="upload-progress" value="0" max="100"></progress>
            <h3 id="message" class="upload-message"></h3>
            <button id="upload-btn">切片上传</button>
        </div>
        <script type="module" src="./src/app.js"></script>
    </body>
</html>
